package com.zone.example.handler;

import com.zone.weixin4j.annotation.WxMessageHandler;
import com.zone.weixin4j.exception.WeixinException;
import com.zone.weixin4j.handler.MessageHandlerAdapter;
import com.zone.weixin4j.message.TextMessage;
import com.zone.weixin4j.request.WeixinRequest;
import com.zone.weixin4j.response.TextResponse;
import com.zone.weixin4j.response.WeixinResponse;

/**
 * 文本消息处理
 * 
 */
/**
 * WxMessageHandler 注解声明处理消息内容的类
 * WxMessageInterceptor  注解声明拦截消息内容的类
 */
@WxMessageHandler
public class TextMessageHandler extends MessageHandlerAdapter<TextMessage> {

	@Override
	public WeixinResponse doHandle0(WeixinRequest request, TextMessage message)
			throws WeixinException {
		return new TextResponse("收到了文本消息");
	}
}
